let defaultProps = []

export default function (state = defaultProps, action) {
    switch (action.type) {
        case "FETCH_PRODUCT":
            return [action.payload, ...state]
        default:
            return [...state]
    }

}